<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="pojo.Order"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的购物车</title>
</head>
<body>

<h1>我的购物车：</h1>
<h2 style="background-color=blue;">当前用户： ${user.uname}</h2>
<table style="border:2">
		<tr>
		 <th>商品名</th>
		 <th>数量</th>
		</tr>
	<c:forEach items="${orderMap}" var="a">
		<tr>
		 <td>${a.value.bname}</td>
		 <td>${a.value.count}</td>
		</tr>
	</c:forEach>
	
	<tr>
		 <td><a href="../back">返回</a></td>
		  <td><a href="buying">下单</a></td>
		</tr>
	
</table>

<h2>
${msg}
</h2>


</body>
</html>